#include <stdio.h>

int main(int argc, char const *argv[])
{
    int t, list[100086], i;

    scanf("%d", &t);
    for (i = 0; i < t; i++)
        scanf("%d", &list[i]);
    
    for (i = 0; i < t - 1; i++)
        if (list[i] % 6)
            printf("October wins!\n");    
        else
            printf("Roy wins!\n");    
    
    if (list[i] % 6)
        printf("October wins!");    
    else
        printf("Roy wins!");    
    return 0;
}
